
<% include '/WEB-INF/includes/header.gtpl' %>
<% import static scriptlerweb.RenderUtil.render as show %>

<h1>Create/update Script</h1>

<p>
<table>
	<form action="/sec/script/save" method="post">
	<% if (request.getAttribute('script')?.id) { %> <input type="hidden" name="id" value="${request.script.id}" /> <% } %>
	<tr>
		<td>Script language: *</td>
		<td><select name="lang">
			<option value="groovy-hudson">groovy-hudson</option>
		</select></td>
	</tr>
	<tr>
		<td>Name: *</td>
		<td><input type="text" size="30" name="name" value="${request.script.name}"><br />
		</td>
	</tr>
	<tr>
		<td valign="top">Comment:</td>
		<td><textarea name="comment" cols="100" rows="5">${request.script.comment}</textarea><br />
		</td>
	</tr>
	<tr>
		<td valign="top">Script: *</td>
		<td><textarea name="scriptSrc" cols="100" rows="30">${request.script.scriptSrc}</textarea><br />
		</td>
	</tr>
	<tr>
		<td colspan="2"><input type="submit" value="Submit"></td>
	</tr>
	</form>
</table>
</p>



<% include '/WEB-INF/includes/footer.gtpl' %>

